import request from '@/utils/request';

// 添加班级资源
export const addResource = (row) => {
    return request({
        url: '/eduM2/eduClass/updateClassResource',
        method: 'post',
        data: row
    })
}

// 移除班级资源
export const removeResource = (ids) => {
    return request({
        url: '/eduM2/eduClass/removeEduClassResource',
        method: 'post',
        data: ids
    })
}

// 查询班级资源
export const getResourceList = (kind, classId) => {
    return request({
        url: '/eduM2/eduClass/getEduClassResourceByClassId/' + kind + '/' + classId,
        method: 'get',
    })
}